﻿public class OrderDetail
{
    public int DetailId { get; set; }
    public string ProductName { get; set; }
    public decimal UnitPrice { get; set; }
    public int Quantity { get; set; }

    public decimal Ammount => UnitPrice * Quantity;

    public override string ToString()
    {
        return $"Product: {ProductName}, Price: {UnitPrice:C}, Quantity: {Quantity}, Amount: {Ammount:C}";
    }
}
